from pydantic_settings import BaseSettings
import logging

class Settings(BaseSettings):
    DEEPSEEK_API_KEY: str = ""
    API_TIMEOUT: int = 500
    MAX_CONNECTIONS: int = 64000

    class Config:
        env_file = ".env"

# 配置日志
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
    datefmt='%Y-%m-%d %H:%M:%S'
)

logger = logging.getLogger(__name__)

settings = Settings() 